package com.lingyuan.product.fegin;

import com.lingyuan.common.core.domain.R;
import com.lingyuan.common.core.domain.vo.pms.SkuAttrVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @ClassName SearchServiceFegin
 * @Description 描述
 * @Author guoxin
 * @Date 2024/9/21 18:04
 */
@FeignClient("lingyuan-search")
public interface  SearchServiceFegin {
    /**
     * 功能:批量添加
     */
    @PostMapping("es/bulkAdd")
    public R bulkAdd(@RequestBody List<SkuAttrVo> skuAttrVos);
    /**
     * 功能: 删除商品
     */
    @DeleteMapping("es/del/{spuId}")
    public R del(@PathVariable("spuId") Long skuId);
}
